﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace KWT.DRG_DIP.API.Migrations
{
    /// <inheritdoc />
    public partial class _20250506170320 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<int>(
                name: "CheckStatus",
                table: "Sys_List",
                type: "int",
                nullable: false,
                comment: "审核状态(-1:失败 0：待审核)",
                oldClrType: typeof(int),
                oldType: "int",
                oldComment: "审核状态");

            migrationBuilder.AddColumn<DateTime>(
                name: "CreateDate",
                table: "Sys_List",
                type: "datetime(0)",
                precision: 0,
                nullable: false,
                defaultValueSql: "now()",
                comment: "生成时间");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "CreateDate",
                table: "Sys_List");

            migrationBuilder.AlterColumn<int>(
                name: "CheckStatus",
                table: "Sys_List",
                type: "int",
                nullable: false,
                comment: "审核状态",
                oldClrType: typeof(int),
                oldType: "int",
                oldComment: "审核状态(-1:失败 0：待审核)");
        }
    }
}
